import request from '@/utils/request'
import qs from 'qs'

/** *******************        aliyun-schedulerx2          ********************/

export function fetchSchedulerx2List(query) {
  return request({
    url: '/devops/aliyun/schedulerx2/listJob',
    method: 'get',
    params: query
  })
}

export function fetchSchedulerx2(jobId) {
  return request({
    url: `/devops/aliyun/getJobInfo/{jobId}`,
    method: 'get'
  })
}

export function operationSchedulerx2(jobId,type) {
  return request({
    url: `/devops/aliyun/schedulerx2/operationJob/{jobId}/{type}`,
    method: 'put'
  })
}
